<%@ page language="java" contentType="application/xml; charset=GBK" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="authorize" uri="/WEB-INF/tags/Authorize.tld"%>
<%@ page import="org.springframework.context.ApplicationContext" %>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="com.probiz.estore.core.view.MessageContext" %>
<%@ page import="org.springframework.context.support.ReloadableResourceBundleMessageSource"%>
<%@ page import="java.util.Locale"%>
<%
	ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(application);
	//MessageContext messageContext = (MessageContext)ctx.getBean("messageContext");
	//String orderQuantity = messageContext.getMessage("report.orderQuantity");
	//String customerRegistQuantity = messageContext.getMessage("report.customerRegistQuantity");
	//String from = messageContext.getMessage("report.message.from");
	//String to = messageContext.getMessage("report.message.to");
	
	ReloadableResourceBundleMessageSource messageSource = (ReloadableResourceBundleMessageSource)ctx.getBean("messageSource");
	Locale locale = null;
	locale = request.getLocale();
	String orderQuantity = messageSource.getMessage("report.orderQuantity",null,locale);
	String customerRegistQuantity = messageSource.getMessage("report.customerRegistQuantity",null,locale);
	String from = messageSource.getMessage("report.message.from",null,locale);
	String to = messageSource.getMessage("report.message.to",null,locale);
	request.setAttribute("orderQuantity",orderQuantity);
	request.setAttribute("customerRegistQuantity",customerRegistQuantity);
	request.setAttribute("from",from);
	request.setAttribute("to",to);
%>
<%-- 
多线图模板
当前只用在后台主面板
--%>
<graph bgColor='FFFFFF' subcaption='(${from} ${startDate} ${to} ${endDate})' yaxisminvalue='0' yaxismaxvalue='${yAxisMaxValue}' baseFontColor="278296"  baseFontSize='12' canvasBorderColor="278296"  canvasBorderThickness="2" showAlternateHGridColor='1' AlternateHGridColor='BBCEE4' divLineColor='BBCEE4' hovercapbg='FFFDD7' hovercapborder='FFB400' formatNumberScale='0' decimalPrecision='0' showvalues='0' numdivlines='4' numVdivlines='4'>
<categories >
<c:forEach var="name" items="${categoryNameList}">
	<category name='${name}' />
</c:forEach>
</categories>
<authorize:authorizeResource resourceString="/order/salesOrder.html">
<dataset seriesName='${orderQuantity}' color='FC5841' anchorBorderColor='FC5841' anchorBgColor='FFFFFF' anchorRadius="3" anchorSides="20" >
	<c:forEach var="orderTotalADay" items="${salesOrderTrendRecentlyList}">
		<set value='${orderTotalADay}' />
	</c:forEach>
</dataset>
</authorize:authorizeResource>
<authorize:authorizeResource resourceString="/customer/customer.html">
<dataset seriesName='${customerRegistQuantity}' color='1DD145' anchorBorderColor='1DD145' anchorBgColor='FFFFFF' anchorRadius="3" anchorSides="20">
	<c:forEach var="customerTotalADay" items="${customerTrendRecentlyList}">
		<set value='${customerTotalADay}' />
	</c:forEach>
</dataset>
</authorize:authorizeResource>
</graph>
